"use strict";

//./node_modules/.bin/sequelize migration:create --name UserAddUpdatedAt
module.exports = {
    up: async (queryInterface, Sequelize) => {
        // 给user 表新加列 updateAt
        return queryInterface.addColumn("User", "updatedAt", {
            type: Sequelize.DATE,
            allowNull: false,
        });
    },

    down: async (queryInterface, Sequelize) => {
        // 删除 user 表的 updateAt列
        return queryInterface.removeColumn("User", "updateAt");
    },
};
